from django.db import models


	
class Category(models.Model):
    title=models.CharField(max_length=30)
    description=models.TextField()
	
    def __unicode__(self):
		return self.title

class Post(models.Model):
	title = models.CharField(max_length=30)
	date = models.DateTimeField(auto_now_add=True)
	description = models.TextField()
	category = models.ForeignKey(Category)   
    
class Favourite_website(models.Model):
	name=models.CharField(max_length=30)
	url=models.CharField(max_length=500)

class Setting(models.Model):
    turn_off_blog=models.BooleanField()
    message=models.CharField(max_length=200)
	
class Page(models.Model):
    title=models.CharField(max_length=30)	
    description=models.TextField()
    
